using Core;
using IglooCoder.Commons.WcfNhibernate;
using NHibernate;

namespace Infrastucture
{
    public class ItemRepository : BaseNHibernateRepository<Item>
    {
        public ItemRepository(ISessionStorage sessionStorage)
            : base(sessionStorage)
        {
        }


        public void UpdateEmailStatus(string itemID)
        {
            ISQLQuery command =
            Session.CreateSQLQuery("Update Item set HasSent=1 Where ItemID='" + itemID + "'");
            int res = command.ExecuteUpdate();
        }
    }
}